import request from '../utils/request';
import { cloud } from '../utils/config';

  export async function queryAll () {
    return request(`${cloud}/userTwo/userTwos`,{
        method: 'get'
      })
  }


  export async function query (payload) {
    return request(`${cloud}/userTwo/userTwos`,{
        method: 'post',
        data: payload,
      })
  }

  export async function create(payload){
    console.log('>>>>>>><<<<<<<<<<<<<<',payload);

    return request(`${cloud}/userTwo/create`,{
      method:'post',
      body:JSON.stringify(payload),
      data:JSON.stringify(payload),
    })
  }
